package cc.mcggdd.leah.boot.stock.model.entity;

import lombok.Getter;
import lombok.Setter;
import java.time.LocalDateTime;
import java.time.LocalDate;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import cc.mcggdd.leah.boot.common.base.BaseEntity;

/**
 * 交易明细实体对象
 *
 * @author 
 * @since 2025-02-13 10:16
 */
@Getter
@Setter
@TableName("stock_trading")
public class StockTrading extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 持仓ID
     */
    private Long holdingId;
    /**
     * 交易日期
     */
    private LocalDate date;
    /**
     * 单价
     */
    private BigDecimal price;
    /**
     * 数量
     */
    private Integer number;
    /**
     * 总金额
     */
    private BigDecimal amount;
    /**
     * 佣金
     */
    private BigDecimal commission;
    /**
     * 印花税
     */
    private BigDecimal stampTax;
    /**
     * 总手续费
     */
    private BigDecimal fee;
    /**
     * 状态
     */
    private String status;
    /**
     * 创建人 ID
     */
    private Long createBy;
    /**
     * 更新人ID
     */
    private Long updateBy;
}
